package com.tyros.web.log;

import com.tyros.web.log.aspect.AspectTypeEnum;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author zhangshuaiyin
 * @date 2022/7/2 10:49
 */
@Data
@ConfigurationProperties(prefix = "tyros.web.handler-log")
public class HandlerLogProperties {
    /**
     * 是否开启接口请求信息日志
     */
    private boolean enable = true;

    /**
     * 切面类型：
     * 1. SwaggerAnnotation: @ApiOperation
     * 2. ControllerAnnotation: @GetMapping, @PostMapping...
     * 3. ControllerPackage: execution(* *..*Controller.*(..))
     */
    private AspectTypeEnum aspectType = AspectTypeEnum.swaggerAnnotation;
}
